#!/bin/bash -x

#set -e

gvn='svn --username=zhi5631@gmail.com --password=RE5Gd9sU2Hj7 '

i=0
while [ 1 ] ; do
  i=`expr $i + 1`
  if [ $i -gt 10 ] ; then
    echo "can't connect google"
    break
  fi

  $gvn $*
  if [ $? -eq 0 ] ; then
    echo "$1 successfully"
    break
  fi
done

#set +e

exit 0
